<?php

/* Devil Web Framework project
 *
 * This file is part of Devil Web Framework project.
 * All project is under the GPL3.0 license.
 * For any suggestion email at dan.andreoli@gmail.com
 */

/**
 * @author Daniele Andreoli <dan.andreoli@gmail.com>
 */

namespace core;

class Bootstrap
{
    private $uri;

    public function __construct($url)
    {
         $tmp_uri = explode("/", substr($url, 1));

         $this->uri = array(
             "controller" => empty($tmp_uri[0]) ? "Index" : ucfirst($tmp_uri[0])
         );
    }

    public function getUri()
    {
        return $this->uri;
    }
}

?>
